package cn.smartopen.aispace.config;

import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ApiUiConfig {

    @Bean
    public GroupedOpenApi userApi(){
        return GroupedOpenApi.builder()
        .group("普通用户")
        .pathsToMatch("/user/**","/user")
        .build();
    }

    @Bean
    public GroupedOpenApi serviceUserApi(){
        return GroupedOpenApi.builder()
        .group("服务商")
        .pathsToMatch("/appid/**","/appid","/zerosys/**")
        .build();
    }

    
    
}
